/*   Defines for the internal 68332 registers */

/*   w/o underscore for straight "c" src OR straight "as68k" source             */
/*   w/  underscore for "asm68k" src that is imbedded in "c" with "pragma ASM"  */
/*       (using the underscore version avoids "c" pre-processor problems ... )  */

#define  SIM_MCR       (unsigned short *)0xfffa00
#define  SIMTR         (unsigned short *)0xfffa02
#define  SYNCR         (unsigned short *)0xfffa04
#define  RSR           (unsigned char  *)0xfffa07
#define  PORTE         (unsigned char  *)0xfffa11
#define  PORTE1        (unsigned char  *)0xfffa13
#define  DDRE          (unsigned char  *)0xfffa15
#define  PEPAR         (unsigned char  *)0xfffa17
#define  PORTF         (unsigned char  *)0xfffa19
#define  PORTF1        (unsigned char  *)0xfffa1b
#define  DDRF          (unsigned char  *)0xfffa1d
#define  PFPAR         (unsigned char  *)0xfffa1f
#define  aPFPAR        0fffa1fH
#define  SYPCR         (unsigned char  *)0xfffa21
#define  PICR          (unsigned char  *)0xfffa22
#define  PIVR          (unsigned char  *)0xfffa23
#define  PISR          (unsigned char  *)0xfffa24
#define  PITR          (unsigned char  *)0xfffa25
#define  SWSR          (unsigned char  *)0xfffa27
#define  TSTMSRA       (unsigned short *)0xfffa30
#define  TSTMSRB       (unsigned short *)0xfffa32
#define  TSTSC         (unsigned short *)0xfffa34
#define  TSTRC         (unsigned short *)0xfffa36
#define  CREG          (unsigned short *)0xfffa38
#define  DREG          (unsigned short *)0xfffa3a
#define  PORTC         (unsigned char  *)0xfffa41
#define  CSPAR0        (unsigned short *)0xfffa44
#define  CSPAR1        (unsigned short *)0xfffa46
#define  CSBRBT        (unsigned short *)0xfffa48
#define  CSORBT        (unsigned short *)0xfffa4a
#define  CSBR0         (unsigned short *)0xfffa4c
#define  CSOR0         (unsigned short *)0xfffa4e
#define  CSBR1         (unsigned short *)0xfffa50
#define  CSOR1         (unsigned short *)0xfffa52
#define  CSBR2         (unsigned short *)0xfffa54
#define  CSOR2         (unsigned short *)0xfffa56
#define  CSBR3         (unsigned short *)0xfffa58
#define  CSOR3         (unsigned short *)0xfffa5a
#define  CSBR4         (unsigned short *)0xfffa5c
#define  CSOR4         (unsigned short *)0xfffa5e
#define  CSBR5         (unsigned short *)0xfffa60
#define  CSOR5         (unsigned short *)0xfffa62
#define  CSBR6         (unsigned short *)0xfffa64
#define  CSOR6         (unsigned short *)0xfffa66
#define  CSBR7         (unsigned short *)0xfffa68
#define  CSOR7         (unsigned short *)0xfffa6a
#define  CSBR8         (unsigned short *)0xfffa6c
#define  CSOR8         (unsigned short *)0xfffa6e
#define  CSBR9         (unsigned short *)0xfffa70
#define  CSOR9         (unsigned short *)0xfffa72
#define  CSBR10        (unsigned short *)0xfffa74
#define  CSOR10        (unsigned short *)0xfffa76
#define  QMCR          (unsigned short *)0xfffc00
#define  QTEST         (unsigned short *)0xfffc02
#define  QILR          (unsigned char  *)0xfffc04
#define  QIVR          (unsigned char  *)0xfffc05
#define  SCCR0         (unsigned short *)0xfffc08
#define  SCCR1         (unsigned short *)0xfffc0a
#define  SCSR          (unsigned short *)0xfffc0c
#define  SCDR          (unsigned short *)0xfffc0e
#define  QPDR          (unsigned char  *)0xfffc15
#define  QPAR          (unsigned char  *)0xfffc16
#define  QDDR          (unsigned char  *)0xfffc17
#define  SPCR0         (unsigned short *)0xfffc18
#define  SPCR1         (unsigned short *)0xfffc1a
#define  SPCR2         (unsigned short *)0xfffc1c
#define  aSPCR1        0fffc1aH
#define  aSPCR2        0fffc1cH
#define  SPCR3         (unsigned char  *)0xfffc1e
#define  SPSR          (unsigned char  *)0xfffc1f
#define  aSPSR         0fffc1fH
#define  TPU_MCR       (unsigned short *)0xfffe00
#define  TPUTEST       (unsigned short *)0xfffe02
#define  DSCR          (unsigned short *)0xfffe04
#define  DSSR          (unsigned short *)0xfffe06
#define  ICR           (unsigned short *)0xfffe08
#define  IER           (unsigned short *)0xfffe0A
#define  CFSR1         (unsigned short *)0xfffe0C
#define  CFSR2         (unsigned short *)0xfffe0E
#define  CFSR3         (unsigned short *)0xfffe10
#define  CFSR4         (unsigned short *)0xfffe12
#define  HSR1          (unsigned short *)0xfffe14
#define  HSR2          (unsigned short *)0xfffe16
#define  HSRR1         (unsigned short *)0xfffe18
#define  HSRR2         (unsigned short *)0xfffe1A
#define  CPR1          (unsigned short *)0xfffe1C
#define  CPR2          (unsigned short *)0xfffe1E
#define  ISR           (unsigned short *)0xfffe20
#define  LR            (unsigned short *)0xfffe22
#define  SGLR          (unsigned short *)0xfffe24
#define  DCNR          (unsigned short *)0xfffe26
#define  RAMMCR        (unsigned short *)0xfffb00
#define  RAMTST0       (unsigned short *)0xfffb02
#define  RAMBAR        (unsigned short *)0xfffb04
#define  PARM0_0       (unsigned short *)0xffff00
#define  PARM0_1       (unsigned short *)0xffff02
#define  PARM0_2       (unsigned short *)0xffff04
#define  PARM0_3       (unsigned short *)0xffff06
#define  PARM0_4       (unsigned short *)0xffff08
#define  PARM0_5       (unsigned short *)0xffff0a
#define  PARM1_0       (unsigned short *)0xffff10
#define  PARM1_1       (unsigned short *)0xffff12
#define  PARM1_2       (unsigned short *)0xffff14
#define  PARM1_3       (unsigned short *)0xffff16
#define  PARM1_4       (unsigned short *)0xffff18
#define  PARM1_5       (unsigned short *)0xffff1a
#define  PARM2_0       (unsigned short *)0xffff20
#define  PARM2_1       (unsigned short *)0xffff22
#define  PARM2_2       (unsigned short *)0xffff24
#define  PARM2_3       (unsigned short *)0xffff26
#define  PARM2_4       (unsigned short *)0xffff28
#define  PARM2_5       (unsigned short *)0xffff2a
#define  PARM3_0       (unsigned short *)0xffff30
#define  PARM3_1       (unsigned short *)0xffff32
#define  PARM3_2       (unsigned short *)0xffff34
#define  PARM3_3       (unsigned short *)0xffff36
#define  PARM3_4       (unsigned short *)0xffff38
#define  PARM3_5       (unsigned short *)0xffff3a
#define  PARM4_0       (unsigned short *)0xffff40
#define  PARM4_1       (unsigned short *)0xffff42
#define  PARM4_2       (unsigned short *)0xffff44
#define  PARM4_3       (unsigned short *)0xffff46
#define  PARM4_4       (unsigned short *)0xffff48
#define  PARM4_5       (unsigned short *)0xffff4a
#define  PARM5_0       (unsigned short *)0xffff50
#define  PARM5_1       (unsigned short *)0xffff52
#define  PARM5_2       (unsigned short *)0xffff54
#define  PARM5_3       (unsigned short *)0xffff56
#define  PARM5_4       (unsigned short *)0xffff58
#define  PARM5_5       (unsigned short *)0xffff5a
#define  PARM6_0       (unsigned short *)0xffff60
#define  PARM6_1       (unsigned short *)0xffff62
#define  PARM6_2       (unsigned short *)0xffff64
#define  PARM6_3       (unsigned short *)0xffff66
#define  PARM6_4       (unsigned short *)0xffff68
#define  PARM6_5       (unsigned short *)0xffff6a
#define  PARM7_0       (unsigned short *)0xffff70
#define  PARM7_1       (unsigned short *)0xffff72
#define  PARM7_2       (unsigned short *)0xffff74
#define  PARM7_3       (unsigned short *)0xffff76
#define  PARM7_4       (unsigned short *)0xffff78
#define  PARM7_5       (unsigned short *)0xffff7a
#define  PARM8_0       (unsigned short *)0xffff80
#define  PARM8_1       (unsigned short *)0xffff82
#define  PARM8_2       (unsigned short *)0xffff84
#define  PARM8_3       (unsigned short *)0xffff86
#define  PARM8_4       (unsigned short *)0xffff88
#define  PARM8_5       (unsigned short *)0xffff8a
#define  PARM9_0       (unsigned short *)0xffff90
#define  PARM9_1       (unsigned short *)0xffff92
#define  PARM9_2       (unsigned short *)0xffff94
#define  PARM9_3       (unsigned short *)0xffff96
#define  PARM9_4       (unsigned short *)0xffff98
#define  PARM9_5       (unsigned short *)0xffff9a
#define  PARM10_0      (unsigned short *)0xffffa0
#define  PARM10_1      (unsigned short *)0xffffa2
#define  PARM10_2      (unsigned short *)0xffffa4
#define  PARM10_3      (unsigned short *)0xffffa6
#define  PARM10_4      (unsigned short *)0xffffa8
#define  PARM10_5      (unsigned short *)0xffffaa
#define  PARM11_0      (unsigned short *)0xffffb0
#define  PARM11_1      (unsigned short *)0xffffb2
#define  PARM11_2      (unsigned short *)0xffffb4
#define  PARM11_3      (unsigned short *)0xffffb6
#define  PARM11_4      (unsigned short *)0xffffb8
#define  PARM11_5      (unsigned short *)0xffffba
#define  PARM12_0      (unsigned short *)0xffffc0
#define  PARM12_1      (unsigned short *)0xffffc2
#define  PARM12_2      (unsigned short *)0xffffc4
#define  PARM12_3      (unsigned short *)0xffffc6
#define  PARM12_4      (unsigned short *)0xffffc8
#define  PARM12_5      (unsigned short *)0xffffca
#define  PARM13_0      (unsigned short *)0xffffd0
#define  PARM13_1      (unsigned short *)0xffffd2
#define  PARM13_2      (unsigned short *)0xffffd4
#define  PARM13_3      (unsigned short *)0xffffd6
#define  PARM13_4      (unsigned short *)0xffffd8
#define  PARM13_5      (unsigned short *)0xffffda
#define  PARM14_0      (unsigned short *)0xffffe0
#define  PARM14_1      (unsigned short *)0xffffe2
#define  PARM14_2      (unsigned short *)0xffffe4
#define  PARM14_3      (unsigned short *)0xffffe6
#define  PARM14_4      (unsigned short *)0xffffe8
#define  PARM14_5      (unsigned short *)0xffffea
#define  PARM14_6      (unsigned short *)0xffffec
#define  PARM14_7      (unsigned short *)0xffffee
#define  PARM15_0      (unsigned short *)0xfffff0
#define  PARM15_1      (unsigned short *)0xfffff2
#define  PARM15_2      (unsigned short *)0xfffff4
#define  PARM15_3      (unsigned short *)0xfffff6
#define  PARM15_4      (unsigned short *)0xfffff8
#define  PARM15_5      (unsigned short *)0xfffffa
#define  PARM15_6      (unsigned short *)0xfffffc
#define  PARM15_7      (unsigned short *)0xfffffe

/* missing defines for 68331 registers */
/*   w/o underscore for straight "c" src OR straight "as68k" source             */
/*   w/  underscore for "asm68k" src that is imbedded in "c" with "pragma ASM"  */
/*       (using the underscore version avoids "c" pre-processor problems ... )  */


#define PWMC           (unsigned short *)0xfff924
#define PWMA           (unsigned char  *)0xfff926
#define PWMB           (unsigned char  *)0xfff927
#define PDR            (unsigned char  *)0xfff907
#define COMD_RAM       (unsigned char  *)0xfffd40
#define TRAN_RAM       (unsigned short *)0xfffd20
#define REC_RAM        (unsigned short *)0xfffd00
#define aCOMD_RAM      0fffd40H
#define aTRAN_RAM      0fffd20H
#define aREC_RAM       0fffd00H
#define TFLG1          (unsigned char  *)0xfff922
#define TFLG2          (unsigned char  *)0xfff923
#define PACTL          (volatile BIT8  *)0xfff90C
#define PACNT          (unsigned char  *)0xfff90d
